const websocket = {
    state:{
        messageValue: [],
    },

    mutations: {
        SET_MESSAGE_VALUE(state,data){
            state.messageValue.push(data)
        },
        SET_MESSAGE(state, data) {
            state.messageValue = data
        },
        DELETE_MESSAGE_VALUE(state,data){
            state.messageValue.splice(data,1)
        },
        DELETE_ALL_MESSAGE(state){
            state.messageValue = []
        }
    },

    actions: {

    }
}

export default websocket
